import request from '@/utils/request'

// -------- 小讲问答收藏--------

let BASE_ADDRESS = '/talk/qaFavorites'
//分页查询
export const geQaFavoritesListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}
// id查询
export const geQaFavoritesGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}
// 删除
export const geQaFavoritesRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}
//添加
export const geQaFavoritesAddAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}
